package com.gwgreenway.sysbase.domain;


import com.gwgreenway.sysbase.common.CodeConstant;

/**
 * 封装实体类 查询对象
 * @author niugang
 *
 */
public class UserQuery extends User {

	/**
	 * 页码
	 */
	private int pageNumber = CodeConstant.DEFAULT_PAGE_NUMBER;
	/**
	 * 页面大小
	 */
	private int pageSize = CodeConstant.DEFAULT_PAGE_SIZE;

	/**
	 * mysql分页查询 limit startRows,pageSize;
	 */
	private int startRows;
	

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStartRows() {
		return (pageNumber-1)*pageSize;
	}

	public void setStartRows(int startRows) {
		this.startRows = startRows;
	}

}
